package com.yzpc.service;

import com.yzpc.entity.MouseClick;
import com.yzpc.entity.Script;

import java.util.List;

public interface IScriptService {
    int insertScript(Script script);
    int updateScript(Script script);
    void deleteScriptById(Integer scriptId);
    void deleteScriptByName(String userName);
    List<Script> findScriptList(Script script);
    Script findScriptById(Integer scriptId);
    List<Script> findScriptByName(String userName);
    List<MouseClick> getMouseClicks();
    void saveScript(String scriptName, List<MouseClick> actions, String userName);
    int updateScriptUsed(Integer scriptId, int used);
}